const markerData = [
    {
       id:'1',
        lnglat:'120.041713, 28.892673',
        level:1,
        state:0,
        name:'胜利大街759号-1223232',
        shuizhiShow:true,
        yeweiShow:true
    //     level:水质类别12345
    //     state：1：一级报警 2：二级报警 3：三级报警 0：未报警
    },
    {
        id:'2',
        lnglat:'120.050951, 28.897744',
        level:2,
        state:0,
        name:'胜利大街759号-1223232',
        shuizhiShow:true,
        yeweiShow:true

    },
    {
        id:'3',
        lnglat:'120.042852, 28.893034',
        level:3,
        state:0,
        name:'胜利大街759号-1223232',
        shuizhiShow:true

    }  ,

    {
        id:'4',
        lnglat:'120.047774, 28.87655',
        level:5,
        state:3,
        name:'胜利大街759号-1223232',
        yeweiShow:true

    },
    {
        id:'5',
        lnglat:'120.04, 28.884658',
        level:2,
        state:1,
        name:'胜利大街759号-1223232',
        shuizhiShow:true,
        yeweiShow:true

    },

    {
        id:'6',
        lnglat:'120.022184, 28.890958',
        level:2,
        state:1,
        name:'胜利大街759号-1223232',
        yeweiShow:true

    },
    {
        id:'7',
        lnglat:'120.049794, 28.882',
        level:1,
        state:1,
        name:'胜利大街759号-1223232',
        shuizhiShow:true,


    },
    {
        id:'8',
        lnglat:'120.022184, 28.890958',
        level:2,
        state:1,
        name:'胜利大街759号-1223232',
        shuizhiShow:true,


    },
    {
        id:'9',
        lnglat:'120.052269, 28.892449',
        level:1,
        state:2,
        name:'胜利大街759号-1223232',
        shuizhiShow:true,
        yeweiShow: true

    },
    {
        id:'10',
        lnglat:'120.048224, 28.886121',
        level:4,
        state:2,
        name:'胜利大街759号-1223232',
        shuizhiShow:true,
        yeweiShow: true

    },
    {
        id:'11',
        lnglat:'120.05645, 28.894715',
        level:5,
        state:0,
        name:'胜利大街759号-1223232',
        shuizhiShow:true,
        yeweiShow: true

    },

]

export function getmarkerData(){
  return  markerData.map((item)=>{
       let lnglatArr = item.lnglat.split(",")
        return {
            ...item,
            lat:lnglatArr[1],
            lng:lnglatArr[0]
        }
    })
}